package com.kz.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author zk
 * @since 2020-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class YcreCost extends Model<YcreCost> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 应收
     */
    private Double receivable;

    /**
     * 应付
     */
    private Double copeWith;

    /**
     * 费用类别
     */
    private String costType;

    /**
     * 客户
     */
    private String clientName;

    /**
     * 付款日期
     */
    private LocalDate paymentTime;

    /**
     * 收款期
     */
    private Integer collectionTime;

    /**
     * 业务提成
     */
    private Double commission;

    /**
     * 提成比例
     */
    private Double commissionRate;

    /**
     * 删除
     */
    private String deleted;

    /**
     * big_id
     */
    private String accId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
